<script setup>
import DevApi from '@/api/dev/index.js'

onMounted(() => {
  getListData()
})

const list = ref([])
const getListData = () => {
  DevApi.getPermission().then(res => {
    console.log(res)
    list.value = res
  })
}
</script>

<template>
  <el-table :data="list" table-layout="auto">
    <el-table-column prop="name" label="名称"/>
    <el-table-column prop="method" label="方法" />
    <el-table-column prop="uri" label="地址"/>
  </el-table>
</template>

<style scoped>

</style>